[ALICE3] Update ALICE3 centrality task - #17522
Conversation
axti98
commented
Aug 20, 2026
- Make CCDB timestamp configurable
- Replace for loop and if statements with Filter + .size() call
- Remove LOG call
- Fix O2Linter errors
|
O2 linter results: ❌ 1 errors, |
Please consider the following formatting changes to AliceO2Group#17522
|
Error while checking build/O2Physics/code-check for 269f48c at 2026-08-20 12:19: Full log here. |
jesgum
left a comment
There was a problem hiding this comment.
Hi @axti98 ! Thanks a lot for the PR! I just have some minor suggestions regarding the code itself.
I also have a general comment regarding the calibration object that is currently in Analysis/ALICE3/Centrality. This looks to be created with v2 in mind (looks like |eta| < 4 is used), so it would probably have to be updated. Also, it is not clear to me, just from inspecting it, what generator was used (the calibration object would be different depending on the generator and the generator settings). Something to consider is if we should have some form of safeguard for this
| void init(InitContext&) | ||
| { | ||
| const AxisSpec axisMult{MaxMult.value > 10000.f ? 10000 : (int)MaxMult, 0, MaxMult, "Reconstructed tracks"}; | ||
| const AxisSpec axisMult{maxMult.value > DefaultMult ? static_cast<int>(DefaultMult) : static_cast<int>(maxMult), 0, maxMult, "Reconstructed tracks"}; |
There was a problem hiding this comment.
Might be more convenient with ConfigurableAxis
| { | ||
| if (!centralityLoaded) { | ||
| hCumMultALICE3 = ccdb->getForTimeStamp<TH1D>("Analysis/ALICE3/Centrality", 1); | ||
| hCumMultALICE3 = ccdb->getForTimeStamp<TH1D>("Analysis/ALICE3/Centrality", ccdbNoLaterThan.value); |
There was a problem hiding this comment.
I would suggest to make the ccdb path a configurable as well, since it might be a bit more convenient if new calibrations are produced (it might be annoying to always try and upload them to Analysis/ALICE3/Centrality as everyone might not have the permissions and instead one could just use their own directory)
There was a problem hiding this comment.
Hi Jesper, yes I agree with your concerns. So the Object behind Analysis/ALICE3/Centrality is just the centrality percentile versus multiplicity, so I will make this path a configurable and upload my own calibration based on PYTHIA
|
Error while checking build/O2Physics/code-check for b448b3c at 2026-08-20 18:02: Full log here. |
|
Approving from my side, leaving it for @njacazio to have a look and merge |